package org.jet.emall.prod.po;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品分类表
 * </p>
 *
 * @author xiaozai
 * @since 2020-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_prod_cate")
@ApiModel(value="ProdCate对象", description="产品分类表")
public class ProdCate implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "分类ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "父级商品分类ID")
    private Integer pid;

    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "分类的备注")
    private String remarks;

    @ApiModelProperty(value = "是否显示,1表示显示,0表示不显示")
    private Byte isShow;

    @ApiModelProperty(value = "同级分类排序码")
    private Integer sortNumber;

    @ApiModelProperty(value = "是否有子分类，1表示有子分类,0表示没有子分类")
    private Byte isFloor;

    @ApiModelProperty(value = "分类等级: 1 一级分类， 2 二级分类, 3 三级分类")
    private Byte level;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除: 1-已删除, 0-未删除")
    private Byte deleted;

    @ApiModelProperty(value = "分类创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后修改时间")
    private LocalDateTime modifiedTime;


}
